package org.msfj.common.enums;

/**
 * 性别
 * Created by yangyan on 2016/10/13.
 */
public enum Gender implements CodeValueEnum<Integer> {


    M(1, "男"),
    F(0, "女"),
    U(2, "未知");
    Integer code;
    String value;

    Gender(Integer code, String value) {
        this.code = code;
        this.value = value;
    }


    @Override
    public String getValue() {
        return value;
    }

    @Override
    public Integer getCode() {
        return code;
    }
}
